package com.dmall.opening.up.core;

import java.util.Optional;

public interface Order extends JsonType {

    interface Item extends JsonType {

        void return_();
    }

    void cancel();

    Optional<Item> findItem(Long id);

    enum Status {
        PENDING,
        CANCELED
    }

    enum Referer {
        OWN,
        THIRD_PARTY
    }
}
